package com.excilys.training.ebanking.web.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

@SuppressWarnings("serial")
public class UtilisateurPersonnalise extends User {
	
	private int id;

	public UtilisateurPersonnalise(String username, 
									String password,
									boolean enabled, 
									boolean accountNonExpired,
									boolean credentialsNonExpired, 
									boolean accountNonLocked,
									Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired,
				credentialsNonExpired, accountNonLocked, authorities);
	}
	
	public UtilisateurPersonnalise(int id, 
									String username, 
									String password,
									boolean enabled, 
									boolean accountNonExpired,
									boolean credentialsNonExpired, 
									boolean accountNonLocked,
									Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired,
				credentialsNonExpired, accountNonLocked, authorities);
		this.id=id;
	}
	public int getId() {
        return id;
}

	

}
